package cn.tedu.egarticle01.base.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

@Configuration
public class InterceptorConfig implements WebMvcConfigurer {
    @Override
    public void addInterceptors(org.springframework.web.servlet.config.annotation.InterceptorRegistry registry) {
        registry.addInterceptor(new cn.tedu.egarticle01.base.interceptors.UserInterceptor())
                .addPathPatterns("/v1/users/article");
    }
}
